package com.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.pojo.OrderStatus;
import com.shop.pojo.Orders;
import com.shop.pojo.vo.OrderVO;
import com.shop.vo.OrdersQueryRequest;
import com.shop.vo.OrdersSaveRequest;
import com.shop.vo.OrdersUpdateRequest;
import org.springframework.validation.beanvalidation.SpringValidatorAdapter;


import java.util.Map;

/**
 * 订单表;
 *
 * @author yukangkang
 * @email sunlightcs@gmail.com
 * @date 2020-10-30 13:16:29
 */
public interface OrdersService extends IService<Orders> {

    IPage<Orders> page(Page page, OrdersQueryRequest request);

    void save(OrdersSaveRequest request);

    void update(OrdersUpdateRequest request);

    void delete(String id);

    OrderVO createOrder(OrdersSaveRequest request);

    public void decreaseItemSpecStock(String itemSpecId,Integer buyCount);

    void updateOrderStatus(String merChantOrderId);

    OrderStatus queryOrderStatusInfo(String orderId);

    void closeOrder();
}

